﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="System_AddUser" %>
<html>
<head runat="server">
    <title>用户编辑</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    th{width:100px;}
    td a{color:red;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <table width="98%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img src="../images/module.gif" width="20" height="22" alt=""/></td>
                <td style="width: 310px; text-align: left;">
                    &nbsp;<asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="990" align="right">
                    [<font color="red">  <a href="javascript:location.href=document.referrer;" class="F_red"><font color="red">返回 </font></a></font>]</td>
            </tr>
        </table>
        <table width="98%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <table cellpadding="1" cellspacing="1" class="tabGg" width="98%">
            <tr>
                <th   bgcolor="#FFFFFF" class="r_bg">
                    用 户 名：</th>
                <td  align="left" bgcolor="#FFFFFF" class="right_bg">
                    <asp:TextBox ID="txtUserName" CssClass="input1" runat="server" Width="130px"></asp:TextBox> <a>*</a>
              </td>
            </tr>
            <tr>
                <th  bgcolor="#FFFFFF" class="r_bg">
                    所属部门：</th>
                <td align="left" bgcolor="#FFFFFF" class="right_bg">
                    <asp:DropDownList ID="ddlDept" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDept_SelectedIndexChanged" Width="135px">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th  bgcolor="#FFFFFF" class="r_bg">
                    真实姓名：</th>
                <td align="left" bgcolor="#FFFFFF" class="right_bg">
                    <asp:DropDownList ID="ddlRealname" runat="server" Width="135px">
                    </asp:DropDownList><span style="color: #ff0000">*</span></td>
            </tr>
            <tr>
                <th  bgcolor="#FFFFFF" class="r_bg">
                    登陆密码：</th>
                <td align="left" bgcolor="#FFFFFF" class="right_bg">
                   
                    <asp:TextBox ID="txtPwd" TextMode="Password" CssClass="input1" runat="server" Width="130px"></asp:TextBox> <span style="color: #ff0000">添加用户时必填</span></td>
            </tr>
            <tr>
                <th  bgcolor="#FFFFFF" class="r_bg">所属角色：</th>
                <td align="left" bgcolor="#FFFFFF" class="right_bg">
                    <asp:DropDownList ID="ddlRole" runat="server" Width="135px">
                    </asp:DropDownList><a></a></td>
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg" >用户编号：</th>
                <td align="left" bgcolor="#ffffff" class="right_bg" >
                    <asp:TextBox ID="txtbh" runat="server" CssClass="input1" Width="130px"></asp:TextBox></td>
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg" >IP 限制：</th>
                <td align="left" bgcolor="#ffffff" class="right_bg" >
                    <asp:TextBox ID="txtIP" runat="server" CssClass="input1" Width="230px" MaxLength="90"></asp:TextBox>
                     <span class="F_red">*为空则不限制，多个IP以","号分开</span></td>
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg">
                </th>
                <td align="left" bgcolor="#ffffff" class="right_bg">
            <asp:Button ID="btnAdd" runat="server" Text=" 保存 " CssClass="submit" OnClick="btnAdd_Click" /></td>
            </tr>
        </table>
        <div style="text-align:center;">
            <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
        </div>
        <asp:HiddenField ID="hidDeptid" runat="server" />
        <asp:HiddenField ID="Hidpwd" runat="server" />
        <asp:HiddenField ID="hidModuid" runat="server" />
    </form>
</body>
</html>
